package com.blue.base.shiro.constants;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.List;

/**
 * @author liulei
 * @version 1.0
 */
@Getter
@Setter
@ToString
@ConfigurationProperties(prefix = "sys.auth.shiro")
public class ShiroConfigBean {

    public static final Integer EXPIRE_SECONDS = 14400000;

    /**
     * 权限缓存地址
     */
    private String authKeyPrefix;

    /**
     * redis地址
     */
    private String redisHost;

    /**
     * 同一个账号的最大会话数
     */
    private int maxSession;

    /**
     * 权限过滤验证url
     */
    private List<String> authSkipUrl;

}
